<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@include file="/common/common.jsp"%>
<h:css href="/css/style1/style-custom.css"/>
<%@include file="/common/skins/skin0/component.jsp" %>
<html>
<!-- 
  - Author(s): pengweiling
  - Date: 2012-08-27 15:08:43
  - Description:
-->
<head>
<title>前台房态报表</title> 
</head>
<body>  
    <e:datasource name="criteria" type="entity" path="com.primeton.das.criteria.criteraiType" />
    <e:datasource name="page" type="entity" path="com.eos.foundation.PageCond" />
    <queryform id= "b187c7db-5f71-47e3-89fa-fdfe7c69d699">
      <h:form  name="query_form" action="com.hms.report.roomstatusrpt.flow" checkType="blur" target="_self" method="post" onsubmit="return checkCond(this);">
        <input type="hidden" name="_eosFlowAction" value="pageQuery"/>

          <table align="center" border="0" width="100%" class="form_table">
            <tr>
              <td class="form_label">
                区域
              </td>
              <td colspan="1">
                <select id='cbxArea'property="criteria/_expr[1]/iresidentialareaid" style="width:200px;">
                  <option></option>
                  <l:iterate id="ida" property="area">
                    <option value='<b:write property="iresidentialareaid" iterateId="ida"/>'><b:write property="careaname" iterateId="ida"/></option>
                  </l:iterate>
                </select>
              </td>
              <td class="form_label">
                清洁房态
              </td>
              <td colspan="1">
                <select id='cbxArea'property="criteria/_expr[2]/clstatus"  style="width:200px;">
                  <option value=""></option>
                  <option value="I">清洁检查房</option>
                  <option value="C">卫生</option>
                  <option value="D">脏房</option>    
                </select>
              </td>

              <td class="form_label">
                前台房态
              </td>
              <td colspan="1">
                <select id='cbxusestatus' property="criteria/_expr[3]/roomstatus"  style="width:200px;" >
                  <option value=""></option>
                  <option value="V">空房</option>
                  <option value="O">在住</option>
                </select>
              </td> 
            </tr>                        
            <tr class="form_bottom">
              <td colspan="6" class="form_bottom">
                <input type="hidden" name="criteria/_entity" value="com.hms.OrderMgr.order.WeRoomStatusV">
                每页显示
                <h:text size="2" property="page/length" value="10" validateAttr="minValue=1;maxValue=100;type=integer;isNull=true" />
                <input type="hidden" name="page/begin" value="0">
                <input type="hidden" name="page/isCount" value="true">
                <input type="submit" value="查询" class="button">
              </td>
            </tr>
          </table>
      </h:form>
    </queryform>
    <br/>
    <viewlist id= "c982df22-9e5b-4902-8ad9-b6934e059711">
      <h:form name="page_form" action="com.hms.report.roomstatusrpt.flow" method="post">
        <input type="hidden" name="_eosFlowAction" value="query" >
        <h:hiddendata property="criteria" />
        <h:hidden property="page/begin"/>
        <h:hidden property="page/length"/>
        <h:hidden property="page/count"/>
        <h:hidden property="page/isCount"/>

          <table align="center" border="0" width="100%" class="EOS_table">
            <tr>
              <th align="center">
                房间号码
              </th>
              <th>
                房间类型
              </th>
              <th>
                所在小区
              </th> 
              <th>
                区域
              </th>    
              <th>
                房型
              </th>                                       
              <th>
                详细地址
              </th>
              <th>
                前台状态
              </th>
              <th>
                清吉状态
              </th>              
              <th>
                管家状态
              </th>                                                                    
            </tr>
            
            <l:iterate property="rooms" id="id1">
            <tr class="<l:output evenOutput='EOS_table_row' />">
               <td><b:write property="croomno" iterateId="id1"/></td>
               <td><d:write property="croomtype" dictTypeId="HMS_Room_Type" iterateId="id1"/></td>
               <td><b:write property="careaname" iterateId="id1"/></td>
               <td><b:write property="carea" iterateId="id1"/></td>
               <td><d:write property="croomtype" dictTypeId="HMS_Room_Type" iterateId="id1"/></td>
               <td><b:write property="caddress" iterateId="id1"/></td>
               <td>
                 <d:write iterateId="id1" property="roomstatus" dictTypeId="HMS_ROOM_ROOMSTATUS"/>                
               </td>
               <td>
 <d:write iterateId="id1" property="roomstatus" dictTypeId="HMS_ROOM_CLSTATUS"/>                                     
               </td>
               <td>
 <d:write iterateId="id1" property="roomstatus" dictTypeId="HMS_ROOM_HKSTATUS"/>   
               </td> 
            </tr>
            </l:iterate>
            
            <tr>
              <td colspan="9" class="command_sort_area">
                <div style="float:right">
                  <l:equal property="page/isCount" targetValue="true">
                    共
                    <b:write property="page/count"/>
                    条记录 第
                    <b:write property="page/currentPage"/>
                    页/
                    <b:write property="page/totalPage"/>
                    页
                  </l:equal>
                  <l:equal property="page/isCount" targetValue="false">
                    第
                    <b:write property="page/currentPage"/>
                    页
                  </l:equal>
                  <input type="button" onclick="firstPage('page', 'pageQuery', null, null, 'page_form');" value="首页"  <l:equal property="page/isFirst" targetValue="true">disabled</l:equal> >
                  <input type="button" onclick="prevPage('page', 'pageQuery', null, null, 'page_form');" value="上页" <l:equal property="page/isFirst" targetValue="true">disabled</l:equal> >
                  <input type="button" onclick="nextPage('page', 'pageQuery', null, null, 'page_form');" value="下页" <l:equal property="page/isLast" targetValue="true">disabled</l:equal> >
                  <l:equal property="page/isCount" targetValue="true">
                    <input type="button" onclick="lastPage('page', 'pageQuery', null, null, 'page_form');" value="尾页" <l:equal property="page/isLast" targetValue="true">disabled</l:equal> >
                  </l:equal>
                </div>
              </td>
            </tr>
          </table>

      </h:form>
    </viewlist>
    <script>
       function checkCond(frm){
         return checkForm(frm);
       }
    </script>
    
</body>
</html>
